<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>layui-日期与时间选择</title>
		<link rel="stylesheet" type="text/css" href="layui/css/layui.css"/>
		<script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
		<script src="layui/layui.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div class="layui-inline">
			<input type="text" class="layui-input" id="date01"/>
		</div>
		<div class="layui-inline">
			<input type="text" class="layui-input" id="date02"/>
		</div>
		<div class="layui-inline">
			<input type="text" class="layui-input" id="date03"/>
		</div>
		<div class="layui-inline">
			<input type="text" class="layui-input" id="date04"/>
		</div>
		<div class="layui-inline">
			<input type="text" class="layui-input" id="date05"/>
		</div>
		<script type="text/javascript">
			layui.use('laydate',function(){
				var laydate=layui.laydate;
				laydate.render({
					elem:"#date01"//绑定元素
					,type:"year"
				});
				laydate.render({
					elem:"#date02"//绑定元素
					,type:"month"
				});
				laydate.render({
					elem:"#date03"//绑定元素
					,type:"date"
				});
				laydate.render({
					elem:"#date04"//绑定元素
					,type:"time"
				});
				laydate.render({
					elem:"#date05"//绑定元素
					,type:"datetime"
					,format:"yyyy年MM月dd HH:mm:ss"
				});
			});
		</script>
	</body>
</html>
